package au.chao.server.authenticate;

import au.chao.user.User;

public abstract class Authenticator implements Runnable {
    
    private User user;
    
    private Authenticator() {}
    
    public Authenticator(User user) {
        this.user = user;
    }
    
    public abstract boolean authenticate();
    
    public void run() {
        authenticate();
    }

    //*** getter , setter ***//
    
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
